package com.seckill.vo;

import com.seckill.annotation.IsPhone;
import com.seckill.enums.ResultEnum;
import com.seckill.result.Result;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

public class LoginVO {
    @NotNull(message = "LoginVo [ userName ] 不可为空")
    private String userName;
    @NotNull(message = "LoginVo [ password ] 不可为空")
    @Length(min = 32, message = "LoginVo [ passWord ] 长度不符合要求")
    @IsPhone(message = "手机号不符合指定规则")
    private String passWord;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    @Override
    public String toString() {
        return "LoginVO{" +
                "userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                '}';
    }
}
